package com.dl.study.module.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: user
 * @Date: 2021/10/19 14:51
 * @Description:
 */
@RestController
@RefreshScope
public class GatewayController {

  //  @Value("${constomer.username}")
    private String userName;

    @GetMapping("/demo")
    public String demo() {
        return "demo ok！！！" + userName;
    }
}
